import React, { useEffect, useState } from "react";
import { Form, InputNumber, message, notification, Select, Checkbox, Input, Button, Upload } from "antd";
import { isEmpty } from "lodash";

export default ({ printData, handlePrinterName }) => {
	<Select placeholder="请选择打印机" onChange={handlePrinterName}>
		{!isEmpty(printData) &&
			printData.map(d => (
				<Option key={d} value={d}>
					{d}
				</Option>
			))}
	</Select>;
};
